package cn.iocoder.lw.module.core.convert.house;

import cn.iocoder.lw.framework.common.pojo.PageResult;
import cn.iocoder.lw.module.core.controller.admin.house.vo.*;
import cn.iocoder.lw.module.core.dal.dataobject.house.CoreHouseDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 房源 Convert
 *
 * @author Lw源码
 */
@Mapper
public interface CoreHouseConvert {

    CoreHouseConvert INSTANCE = Mappers.getMapper(CoreHouseConvert.class);

    CoreHouseDO convert(CoreHouseSaveReqVO bean);

    CoreHouseRespVO convert(CoreHouseDO bean);

    List<CoreHouseRespVO> convertList(List<CoreHouseDO> list);

    PageResult<CoreHouseRespVO> convertPage(PageResult<CoreHouseDO> page);

    List<CoreHouseImportExcelVO> convertList02(List<CoreHouseDO> list);

    CoreHouseDO convert(CoreHouseImportExcelVO bean);

}